/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.satish.gmailapp.beans;

/**
 *
 * @author satish
 */
public class SearchCriteria {
    private String from;    

    /**
     * @return the from
     */
    public String getFrom() {
        return from;
    }

    /**
     * @param from the from to set
     */
    public void setFrom(String from) {
        this.from = from;
    }

    @Override
    public String toString() {
        StringBuilder sb =  new StringBuilder();
        if(from != null && !from.isEmpty()) {
            sb.append("from:").append("(").append(from).append(")");
        }
        return sb.toString();
    }
}
